package org.ttitfly.workflow.engine.basic.parser;

import java.io.File;

import org.ttitfly.workflow.engine.Process;
import org.ttitfly.workflow.exception.ProcessDefineException;


/**
 * XML流程定义解释器
 * 
 * @author 潘海春
 * @version 2009-9-22
 */
public interface XMLProcessParser {

	/**
	 * 解释流程定义
	 * 
	 * @param file
	 *            流程定义xml文件
	 * @return
	 * @throws ProcessDefineException
	 */
	Process parse(File file) throws ProcessDefineException;
}
